package bpm.domain.im;

public class TaskMessageForExchange extends TaskMessageBase{


	public TaskMessageForExchange(){
		super();
		super.setType(MessageType.EXCHANGE);
	}
	private String title;
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	private String exchangeId;
	 

	public String getExchangeId() {
		return exchangeId;
	}

	public void setExchangeId(String exchangeId) {
		this.exchangeId = exchangeId;
	}

	@Override
	public String getAction() {
		if(action == null) {
			StringBuffer sb = new StringBuffer();
			sb.append("smart://oaclientnew/")//oa
				.append(super.getType().name()).append("/")
				.append(this.exchangeId);
			this.action = sb.toString();
		}
		return action;
	}
	@Override
	public String toString() {
		return super.toString(title);
	}

	

}
